<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<script src="jquery.js"></script>
</head>
<body>
	<script type="text/javascript">
var j1 = { 
    '': '',
    action: 'adduser',
    user: '123',
    pwd: '11111',
    rpassword: '11111',
    email: '3@163.com' 
}
var j2 = {
    '': '222',
    action: 'adduser222',
    user: '123222',
    pwd: '11111222',
    rpassword: '11111222',
    email: '32222@163.com' 
}
var jarr=[j1,j2];
// jarr[0]=j1;
// jarr[1]=j2;
// json = [j1,j2];
json = [jarr[0],jarr[1]];

console.log(json);



// var j1 = { 
            //     '': '',
            //     action: 'adduser',
            //     user: '123',
            //     pwd: '11111',
            //     rpassword: '11111',
            //     email: '3@163.com' 
            // }
            // var j2 = {
            //     '': '222',
            //     action: 'adduser222',
            //     user: '123222',
            //     pwd: '11111222',
            //     rpassword: '11111222',
            //     email: '32222@163.com' 
            // }

            // json = [j1,j2];
// console.log(json);



var s_arr=[0,1,2,3,4];
var s_name=["f1","f2","f3","f4","f5"];
var new_json=
    {
          'name':'num1',
          'f1':s_arr[0],
          'f2':s_arr[1],
          'f3':s_arr[2],
          'f4':s_arr[3],
          'f5':s_arr[4],
    }

var new_json2=
    {
          'name':'num2',
          'f1':s_arr[0],
          'f2':s_arr[1],
          'f3':s_arr[2],
          'f4':s_arr[3],
          'f5':s_arr[4],
    }

var n_arr=[new_json,new_json2];
 json2=[n_arr[0],n_arr[1]]
console.log(json2)
</script>
</body>
</html>